home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / handle20.zip / OFFER_#1.TXT < prev    next >
Text File  |  1987-07-15  |  19KB  |  400 lines

  1.  
  2.                                                                   July 87
  3.  
  4.             GETTING DOS TO OPEN 256 FILES SIMULTANEOUSLY!!
  5.       TSR Programs, Source Code, Tutorial, Commentary and More...
  6.                                   by
  7.                              Steve Gibson
  8.  
  9.                               -*- -*- -*-
  10.  
  11.                 version 2.0 (now works in BATCH files!)
  12.  
  13.            This file is divided into the following sections:
  14.           ---------------------------------------------------
  15.                  o  WHAT'S ON THE DISK
  16.                  o  USING THE NEW "FILES" COMMAND
  17.                  o  A BRIEF HISTORY OF THIS OFFER DISK
  18.                  o  HOW THE PROGRAMS WORK
  19.                  o  THE WRAP UP
  20.           ---------------------------------------------------
  21.  
  22.  
  23.  
  24.                           WHAT'S ON THE DISK
  25. ----------------------------------------------------------------------
  26. o  FILES.TXT - This file (the one you're reading now) describes the 
  27.    contents of this "Steve's TSR Offer #1" diskette, and outlines the 
  28.    use and operation of the included files and programs. 
  29.  
  30.  
  31. o  TSR.TXT - This file is a complete tutorial introduction to the 
  32.    technology and operation of Terminate and Stay Resident (TSR) 
  33.    programs under MS/PC-DOS.  It was rewritten from Steve's original 
  34.    four-part InfoWorld TECHTALK column series on TSR Technology.
  35.  
  36.  
  37. o  Three SUB-DIRECTORIES:  FILES33, FILES3X, and OPENER.
  38.    Each sub-directory contains the collection of files pertaining to 
  39.    the COM file bearing the sub-directory's name.  See the details 
  40.    which follow below:
  41.  
  42.    o  FILES33 is for use with DOS 3.3.  It was the first of these 
  43.       programs to be written.  It "plays by the rules" by using only 
  44.       fully documented techniques (well almost).  It also uses and 
  45.       demonstrates the new handle requesting mechanism in DOS 3.3. 
  46.  
  47.    o  FILES3X is for use with all DOS 3.x versions EXCEPT the latest 
  48.       3.3.  It uses a collection of undocumented (but well known) 
  49.       techniques to achieve the same effect as the DOS 3.3 handle 
  50.       count request mechanism.  As such it allows users of DOS 
  51.       versions 3.00 thru 3.20 to have the same 256 file limit as 
  52.       FILES33.COM gives to DOS 3.30 users. 
  53.  
  54.    o  OPENER is a test program which easily and quickly demonstrates 
  55.       the working of the other programs.  It rapidly creates and opens 
  56.       files whose names take the form !AAAA, !AAAB, !AAAC, !AAAD, etc.  
  57.       It continues in this fashion, alphabetically advancing the file 
  58.       names until the file creation request fails.  While doing this, 
  59.       it counts the number of open files and displays their names and 
  60.       handle IDs. 
  61.  
  62.  
  63. o  RAM.COM - A "quickie" DOS command which displays the amount of RAM 
  64.    currently available to a DOS application program.  It is useful if 
  65.    given before and after loading any resident TSR program (like the 
  66.    FILES command) to see how much memory that program consumes.
  67.    It can ALSO be used IMMEDIATELY after booting DOS with various 
  68.    settings of the "FILES=xxx" line in CONFIG.SYS to show how much RAM 
  69.    is always being consumed by DOS's static file management buffers. 
  70.  
  71.  
  72. To assist assembly language programmers who haven't yet conquered the 
  73. mysteries of resident software programming, for those who wonder what 
  74. assembly language programs look like, and to completely document the 
  75. programs, this disk also includes heavily commented source code which 
  76. takes a mild tutorial approach.  Additionally, BATCH files are 
  77. included which can be used to drive the creation of COM files from the 
  78. included assembly language sources. 
  79.  
  80. As mentioned above, the three subdirectories on the diskette (FILES33, 
  81. FILES3X, and OPENER) contain the files relating to each COM program. 
  82.  
  83. ---------------------------- PLEASE NOTE: ----------------------------
  84. You should ONLY use ONE of the two FILES programs (FILES3X or FILES33) 
  85. depending upon the version of DOS you're currently running.
  86. ----------------------------------------------------------------------
  87.  
  88.  
  89.                            -*- -*- -*-
  90.  
  91.  
  92.  
  93.                      USING THE NEW "FILES" COMMAND
  94. ----------------------------------------------------------------------
  95. The following are step-by-step instructions are for those who want to 
  96. "get on with it" and perhaps read the rest of this OFFER_#1 file 
  97. later.  The balance of this document contains a brief history of the 
  98. programs and a complete functional and operational description of this 
  99. package.  If you follow the instructions below you need NOT bother 
  100. reading further.
  101.  
  102.  
  103.                           FILES INSTRUCTIONS
  104. ----------------------------------------------------------------------
  105. 0. If you are NOT using a version 3 of MS-DOS or PC-DOS (DOS 3.00 thru 
  106.    DOS 3.30) you MUST FIRST upgrade yourself.  NONE of the programs on 
  107.    this disk (except OPENER which won't be of much use to you in any 
  108.    case) will run under pre-3.00 DOS versions. 
  109.  
  110.  
  111. 1. COPY either FILES3X.COM or FILES33.COM from the appropriate 
  112.    diskette sub-directory to your main working DOS command directory 
  113.    RENAMING it to FILES.COM in the process.  If you ARE NOT USING DOS 
  114.    version 3.3, copy the FILES3X.COM program.  ONLY IF you ARE USING 
  115.    DOS 3.3, copy the FILES33.COM program.
  116.  
  117.    NOTE: The two programs could have easily been integrated into one, 
  118.    but they were deliberately individualized to allow their individual 
  119.    functionality to be seen more clearly.  This also minimized the 
  120.    programs' resident portions (which is always a good thing). 
  121.  
  122.  
  123. 2. COPY OPENER.COM from the diskette's OPENER sub-directory to your 
  124.    working DOS command directory. 
  125.  
  126.  
  127. 3. EDIT your current CONFIG.SYS file changing the "FILES=xxx" line of 
  128.    that file (or adding one if you don't already have one) to reflect 
  129.    the new total number of files you'd like to be able to have open 
  130.    simultaneously.  Values of up to "FILES=255" are acceptable. 
  131.  
  132.  
  133. 4. REBOOT your computer to activate the new CONFIG.SYS file spec. 
  134.  
  135.  
  136. 5. CREATE a new sub-directory on a diskette or hard disk and make it 
  137.    the current directory.  This will be a place for experimenting with 
  138.    these commands which create and open MANY files.
  139.  
  140.    NOTE: The root directories of most floppy disks is not large enough 
  141.    to hold as many files as you'll now be able to create and open, and 
  142.    you wouldn't want the root directory of your hard disk junked up 
  143.    with temporary files.  So do *EVERYTHING* in this sub-directory!
  144.  
  145.  
  146. 6. NOW, without first running FILES.COM, simply give the command 
  147.    OPENER.  "Opener" will create files whose alphabetically sequential 
  148.    names take the form: !AAAA, !AAAB, !AAAC, etc.  The screen will 
  149.    display the number, name, and DOS handle (which you can ignore if 
  150.    you're not into programming) as each file is created and opened.  
  151.    It will STOP as soon as DOS refuses to Create or Open a file for 
  152.    any reason.
  153.  
  154.    IMPORTANT NOTE: OPENER leaves these zero-length files in your sub-
  155.    directory after it finishes!  This allows you to easily compare the 
  156.    time required for many files to be Created versus Opened.  Users of 
  157.    DOS 3.30 can also measure the benefits of DOS's new FASTOPEN 
  158.    resident utility in this fashion. 
  159.  
  160.    TO DELETE THESE FILES: Give the command "DEL !AA*" which removes 
  161.    all files of the form:  !AAxx  which OPENER creates. 
  162.  
  163.  
  164. 7. NOW, give the command "FILES".  A short message will print to the 
  165.    screen and the DOS prompt will be returned.  BEFORE DOING ANYTHING 
  166.    ELSE, give the OPENER command again.  If everything goes as 
  167.    planned, the number of files you have requested in the FILES= line 
  168.    of CONFIG.SYS will be Created and/or Opened. 
  169.  
  170.    NOTE: A few files FEWER than the number you requested with 
  171.    CONFIG.SYS will probably actually be opened by OPENER owing to the 
  172.    several file handles (for standard console Input and Output) which 
  173.    DOS "pre-opens" for application software. 
  174.  
  175.    ALSO: The statement generated when FILES is installed may be 
  176.